home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / xfcnmscl.sit / XFCN miscellany / card_4236.txt < prev    next >
Text File  |  1987-11-22  |  4KB  |  135 lines

  1. -- card: 4236 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2690
  5. -- name: MultiFinder
  6.  
  7.  
  8. -- part 2 (field)
  9. -- low flags: 01
  10. -- high flags: 0000
  11. -- rect: left=14 top=86 right=300 bottom=496
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part 1 (field)
  23. -- low flags: 00
  24. -- high flags: 0000
  25. -- rect: left=141 top=57 right=75 bottom=361
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 3
  30. -- text size: 12
  31. -- style flags: 8448
  32. -- line height: 16
  33. -- part name: 
  34.  
  35.  
  36. -- part 6 (field)
  37. -- low flags: 81
  38. -- high flags: 0004
  39. -- rect: left=239 top=111 right=172 bottom=482
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 0
  43. -- font id: 3
  44. -- text size: 10
  45. -- style flags: 0
  46. -- line height: 13
  47. -- part name: SubNote
  48. ----- HyperTalk script -----
  49. on mouseUp
  50.   set the visible of Me to not the visible of Me
  51. end mouseUp
  52.  
  53.  
  54.  
  55. -- part 7 (button)
  56. -- low flags: 00
  57. -- high flags: 0000
  58. -- rect: left=212 top=174 right=193 bottom=233
  59. -- title width / last selected line: 0
  60. -- icon id / first selected line: 0 / 0
  61. -- text alignment: 1
  62. -- font id: 0
  63. -- text size: 12
  64. -- style flags: 0
  65. -- line height: 16
  66. -- part name: 
  67. ----- HyperTalk script -----
  68. on mouseUp
  69.   set the visible of card field "SubNote" to not the visible of card field "SubNote"
  70. end mouseUp
  71.  
  72.  
  73.  
  74. -- part 8 (button)
  75. -- low flags: 00
  76. -- high flags: 0000
  77. -- rect: left=311 top=277 right=298 bottom=331
  78. -- title width / last selected line: 0
  79. -- icon id / first selected line: 0 / 0
  80. -- text alignment: 1
  81. -- font id: 0
  82. -- text size: 12
  83. -- style flags: 0
  84. -- line height: 16
  85. -- part name: 
  86. ----- HyperTalk script -----
  87. on mouseUp
  88.   go to card "MultiBugs"
  89. end mouseUp
  90.  
  91.  
  92.  
  93. -- part 9 (button)
  94. -- low flags: 00
  95. -- high flags: 0000
  96. -- rect: left=470 top=264 right=283 bottom=494
  97. -- title width / last selected line: 0
  98. -- icon id / first selected line: 0 / 0
  99. -- text alignment: 1
  100. -- font id: 0
  101. -- text size: 12
  102. -- style flags: 0
  103. -- line height: 16
  104. -- part name: 
  105. ----- HyperTalk script -----
  106. on mouseUp
  107.   edit script of this stack
  108. end mouseUp
  109.  
  110.  
  111.  
  112. -- part contents for card part 1
  113. ----- text -----
  114. MultiFinder commands
  115.  
  116. -- part contents for card part 2
  117. ----- text -----
  118. This stack contains 3 XFCNs for the MultiFinder (1.0, not buggy betas!) environment:
  119.  
  120.     ΓÇó  MultiFinder()  - returns TRUE if MultiFinder is active, otherwise FALSE.
  121.  
  122.     ΓÇó  IsRunning(programName) - returns TRUE if program "programName" is already running
  123.         in the MultiFinder environment, otherwise FALSE.
  124.  
  125.     ΓÇó  SubLaunch(programName,docName)* - sublaunches the program with optional attached 
  126.         document.  Both HyperCard and the specified program will then be running, memory 
  127.         permitting (at least 2 Meg!).  If the arguments have no colons in them (not a pathname), 
  128.         then the ΓÇ£Look for applications in:ΓÇ¥┬áetc. cards in the Home stack are consulted. 
  129.  
  130. SubLaunch return 0 for success, negative numbers for Operating System errors, and small positive numbers for parameter errors, or lack of memory. To see how to handle this, and how the XFCNs can be used in concert, take a look at the ΓÇ£InvokeApplicationΓÇ¥ and ΓÇ£OsErrΓÇ¥ handlers* in the stack script. InvokeApplication also fixes HyperCard bugs* when under MultiFinder.
  131.      
  132.  
  133. -- part contents for card part 6
  134. ----- text -----
  135. The Sublaunch XFCN is only needed with release 1.0.1 of HyperCard when running under MultiFinder. The ΓÇ£openΓÇ¥┬ácommand has this functionality under later releases.